package com.zmzncs.lmtc.common.pojo.enums;

public enum RestCodeEnum {

    CODE_200(200, "成功"),
    CODE_400(400, "参数错误"),
    CODE_401(401, "用户认证失败"),
    CODE_403(403, "服务器不处理"),
    CODE_500(500, "服务器错误");

    private Integer code;
    private String desc;

    private RestCodeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}